let mongoose=require('./db')

const bookListSchema = new mongoose.Schema({
    bookTitle:String, //书籍标题
    bookAuthor:String,//作者
    bookCovers:Array,//书籍封面
    publishingHouse:String,//出版社
    appearance:String,//品相
    productDetails:String,//商品详情
    originalPrice:String,//原价格
    currentPrice:String,//现价格
    freight:String,//运费
    bookRatings:String,//书籍评分
    classify:String,//
    lng:String,
    lat:String
})
const bookListModel = mongoose.model('bookList', bookListSchema, 'bookList');

// bookListModel.create([
//     {
//         bookTitle:'《吞噬星空》',
//         bookAuthor:"我吃西红柿",
//         bookCovers:[
//             "https://img14.360buyimg.com/n1/jfs/t1/89936/39/10906/227655/5e254bbbE7b994eb1/7990d77162cdd6ab.png",
//             "https://i.gtimg.cn/qqlive/img/jpgcache/files/qqvideo/hori/3/324olz7ilvo2j5f.jpg",
//             "https://img3.runjiapp.com/duoteimg/dtnew_newsup_img/202207/20220727114652_27416.jpg",
//             "https://ts1.cn.mm.bing.net/th/id/R-C.96023d86704add7000fd4dda8b916ddf?rik=OC47lfmZe1wvmQ&riu=http%3a%2f%2fpuui.qpic.cn%2fvpic_cover%2fb33627vs694%2fb33627vs694_hz.jpg%2f1280&ehk=C%2flu4IWHidfspG1jrvvTC4Y%2b%2b1A%2f7Cxzczvgt7DyexY%3d&risl=&pid=ImgRaw&r=0"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"九成新",
//         productDetails:"地球经历一场大灾难后引发了各物种的变异，优胜劣汰，主角罗峰得到陨墨星主人传承，成为地球三强者之一，与星空吞噬巨兽一战后失去肉身，夺舍成为星空吞噬兽，在体内世界育出人类分身，之后迈出地球，走向宇宙。",
//         originalPrice:"99.00",
//         currentPrice:"69.00",
//         freight:"包邮",
//         bookRatings:"9.5",
//         classify:'2',
//         lng: '115.49297990055841',
//         lat: '38.827894632071356',
//     },
//     {
//         bookTitle:'《肖生克的救赎》',
//         bookAuthor:"浩瀚馨语",
//         bookCovers:[
//             "https://img14.360buyimg.com/n1/jfs/t1/103617/32/13813/357368/5e5dba2cEe5e05362/e16891c17b23e21f.jpg",
//             "https://tse4-mm.cn.bing.net/th/id/OIP-C.vzaZlSNPoFUW372eQGVxYQHaK_?pid=ImgDet&rs=1",
//             "https://ts1.cn.mm.bing.net/th/id/R-C.e326e4967a3a038ee949792c056df040?rik=Ge9zBpnSEwU2jg&riu=http%3a%2f%2fmall3.iqiyipic.com%2fmall%2f20171026%2fb9%2fca%2fmall_59f1812df6882e60af1fb9ca_1x1.jpg&ehk=UShYzpHgl4A4kB2fadoTUFy%2baz9KEWcF28sjkFp5YvY%3d&risl=&pid=ImgRaw&r=0",
//             "https://pic1.zhimg.com/v2-83a1a104ba614f639df012f0883e732d_1440w.jpg?source=172ae18b",
//             "https://img.zcool.cn/community/01240a5c45c10da801203d22737eac.jpg@3000w_1l_0o_100sh.jpg"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"八成新",
//         productDetails:"做事有原则，做人有底线。即便充满光环的人也没有资格越界。他，是一名出色的外科医生，拯救危难患者无数，其中包括英模人物和老革命，让他身上充满了光环，并得到崇拜者的追求，但已经有家庭的他是否会越过这条人生底线呢？一次意外的手术失败，让他彻底跌下神坛。不但家庭破裂，也被赶下了令他钟爱的手术台，被发配到一个无法展示他精湛医术且充满死亡的病区。他该何去何从？从逆境中振作起来的他终于意识到，救死扶伤不一点不一定依靠精湛的医术，更需要爱",
//         originalPrice:"69.00",
//         currentPrice:"36.00",
//         freight:"包邮",
//         bookRatings:"9.5",
//         classify:'1',
//         lng: '115.50531311355005',
//         lat: '38.8351277031337',
//     },
//     {
//         bookTitle:'《大宋王朝》',
//         bookAuthor:"云扒皮",
//         bookCovers:[
//             "https://tse1-mm.cn.bing.net/th/id/OIP-C.5ASfh7dNigiBgkWHKdmLLAHaHa?pid=ImgDet&rs=1",
//             "https://img13.360buyimg.com/n1/jfs/t1/94357/2/15570/348132/5e71d5e2E0d7cc790/5d30ca915163463d.png",
//             "https://ts1.cn.mm.bing.net/th/id/R-C.b792a41005601c0f9af22ef1f06a8a00?rik=5GbfPu7JNCWnBQ&riu=http%3a%2f%2f5b0988e595225.cdn.sohucs.com%2fimages%2f20171012%2f99a0dc64ade9428196733cb1bd4cba1b.jpeg&ehk=BXA%2bP%2fUVinoGrm5k7OWpivQGVKsEwVWO8XMpNTIFyrc%3d&risl=&pid=ImgRaw&r=0",
//             "https://gss0.baidu.com/9vo3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/960a304e251f95ca7840a6f2c7177f3e67095238.jpg"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"全新",
//         productDetails:"穿越的李弘悲剧的发现，自己竟然活在了金国鬼子统治下的沦陷区，妥妥的亡国奴。时间是1155年，这一年一代奸相秦桧刚刚挂掉，赵构舒服的过着自己的小日子，金主完颜亮厉兵秣马想要一统天下，辛弃疾还是个满腔热血的大孩子。至于主人公李弘，救国之前，先要救家",
//         originalPrice:"69.00",
//         currentPrice:"60.00",
//         freight:"包邮",
//         bookRatings:"9.9",
//         classify:'3',
//         lng: '115.52186305660828',
//         lat: '38.851112779480005',
//     },
//     {
//         bookTitle:'《斗罗大陆》',
//         bookAuthor:"唐家三少",
//         bookCovers:[
//             "https://tse1-mm.cn.bing.net/th/id/OIP-C.GK9Gxq4msR3nC_JLj6_ClQHaHa?pid=ImgDet&rs=1",
//             "https://www.chinavid.com/wp-content/uploads/2020/12/14/frc-e4612236e72590018c46c3af0945451d.jpeg",
//             "https://www.douyinwo.com/wp-content/uploads/2021/05/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210501155958-1536x864.jpg",
//             "https://clubimg.club.vmall.com/data/attachment/forum/201910/19/231806ttmavpacg7rbksh5.jpg"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"八成新",
//         productDetails:"讲述了穿越到斗罗大陆的唐三如何一步步修炼武魂，由人修炼为神，最终铲除了斗罗大陆上的邪恶力量，报了杀母之仇，成为斗罗大陆最强者",
//         originalPrice:"69.00",
//         currentPrice:"36.00",
//         freight:"包邮",
//         bookRatings:"8.5",
//         classify:'1',
//         lng: '115.46505619016786',
//         lat: '38.83333221122094',
//     },
//     {
//         bookTitle:'《完美世界》',
//         bookAuthor:"辰东",
//         bookCovers:[
//             "https://ts1.cn.mm.bing.net/th/id/R-C.960bf259c8124a609b698f9da239c51f?rik=Ol4DMTIi0izFBw&riu=http%3a%2f%2fpuui.qpic.cn%2fvpic_cover%2fr3338ugi7l0%2fr3338ugi7l0_hz.jpg%2f1280&ehk=eOQ8cUlhpFrgGSzKO2X9P6kaTB34JlxKzd5NWzcQ5R0%3d&risl=&pid=ImgRaw&r=0",
//             "https://ts1.cn.mm.bing.net/th/id/R-C.0d1f5a360316d998074955707b7e2f29?rik=NreEeN0zJQaspw&riu=http%3a%2f%2fvipbook.sinaedge.com%2fbookcover%2fpics%2f145%2fcover_85a73b40ddf290c64c0cb9b32ccf8069.jpg%3f1603702455&ehk=4JzJ337%2bb1j9kRwstrkDUQBHfoOpSg9%2btncq7f5OeSc%3d&risl=&pid=ImgRaw&r=0",
//             "https://tse4-mm.cn.bing.net/th/id/OIP-C.9D-WarlKX7fzpY8BPz6lPAHaEK?pid=ImgDet&rs=1",
//             "https://d.ifengimg.com/q100/img1.ugc.ifeng.com/newugc/20210101/12/wemedia/8187a16609a696ddd4b140dfb0985d9010b89c00_size153_w1269_h846.jpeg"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"八成新",
//         productDetails:"讲述了一个少年从大荒中走出，一步步走向世间巅峰的故事。石昊天生至尊，但在很小的时候被家族挖去至尊骨，接在了他的同性家族哥哥的身上。他经历了许多困难和挑战，最终成为了一个强大的存在。故事中描绘了石昊的修炼之路、战斗经历以及与神秘力量的斗争。",
//         originalPrice:"79.00",
//         currentPrice:"52.00",
//         freight:"10.00",
//         bookRatings:"9.5",
//         classify:'1',
//         lng: '115.62324891607056',
//         lat: '38.937251581313716',
//     },
//     {
//         bookTitle:'《沧元图》',
//         bookAuthor:"我吃西红柿",
//         bookCovers:[
//             "https://img.alicdn.com/bao/uploaded/i2/2207922096636/O1CN01sjWugi1ytL1uIn6cm_!!0-item_pic.jpg",
//             "https://cdn.lightrain.com.cn/wp-content/uploads/2022/02/%E6%B2%A7%E5%85%83%E5%9B%BE.jpg",
//             "https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/117eccad065cf8ca148c3a4def087c38.jpg?x-oss-process=image%2fresize%2cm_lfit%2cw_960%2ch_540"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"八成新",
//         productDetails:"该作品主要讲述了大周王朝吴州东宁府孟家公子孟川的修行之路的故事。心潮澎湃，无限幻想，迎风挥击千层浪，少年不败热血!",
//         originalPrice:"75.00",
//         currentPrice:"65.00",
//         freight:"包邮",
//         bookRatings:"9.6",
//         classify:'1',

//         lng: '115.54545437026843',
//         lat: '38.79524976856953',
//     },
//     {
//         bookTitle:'《天下匠心》',
//         bookAuthor:"赤色星云",
//         bookCovers:[
//             "https://ts1.cn.mm.bing.net/th/id/R-C.958e54880750d0372bb6aeebfb65724c?rik=bO1oOZBU74V0ow&riu=http%3a%2f%2fimgpp.ztupic.com%2fbup%2fso%2f20210317%2f0fea90f1c1f89da40424560bc64d050e-1.jpg%3fx-oss-process%3dimage%2fcrop%2cw_1024%2ch_1542%2fresize%2ch_812%2fquality%2cq_85%2fsharpen%2c100&ehk=7ralnIHgZq6S7cTBN%2fgBqtA72MiQR%2fGxjfSLpqKrhFc%3d&risl=&pid=ImgRaw&r=0"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"九成新",
//         productDetails:"匠者，土承天下，木载苍穹！一代建筑大师的崛起之路，婉豆之花，一个关于豆芽菜的普通故事",
//         originalPrice:"109.00",
//         currentPrice:"75.00",
//         freight:"包邮",
//         bookRatings:"9.8",
//         classify:'1',
//         lng: '115.62066249416642',
//         lat: '38.75513271891957',
//     },
//     {
//         bookTitle:'《法医秦明》',
//         bookAuthor:"志鸟村",
//         bookCovers:[
//             "https://tse1-mm.cn.bing.net/th/id/OIP-C.p90Kv3nXAWYWzOnesgRUEwHaJe?pid=ImgDet&rs=1",
//             "https://pic1.zhimg.com/50/v2-f6342ac5939d6f5a355aa640951c3f6c_720w.jpg?source=54b3c3a5",
//             "https://piccdn3.umiwi.com/img/202011/27/202011271856065507254963.jpg",
//             "https://pic2.zhimg.com/v2-0100760b6292a2aad4e275de20bfe228_r.jpg?source=1940ef5c"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"九成新",
//         productDetails:"尸体：请问你礼貌吗？",
//         originalPrice:"49.00",
//         currentPrice:"19.90",
//         freight:"包邮",
//         bookRatings:"10.0",
//         classify:'1',
//         lng: '115.52324891607056',
//         lat: '38.837251581313716',
//     },
//     {
//         bookTitle:'《医学之书》',
//         bookAuthor:"克利福德·皮寇弗",
//         bookCovers:[
//             "https://ts1.cn.mm.bing.net/th/id/R-C.f1a21ef15248ef2256eb602523ee5e8d?rik=DAaDmuoNAi%2bXNA&riu=http%3a%2f%2fpic.j9p.com%2fup%2f2021-1%2f16098318316584043.png&ehk=kEX9EmiOWsDNsIpj7BFDIrSQZWZquH2mRpbi%2fM5GyFs%3d&risl=&pid=ImgRaw&r=0",
//             "https://img.xiaohuasheng.cn/386213/Book/20210316220044.jpg"
//         ],
//         publishingHouse:"北京十月文艺出版社",
//         appearance:"九成新",
//         productDetails:"我外公是一名石匠，准确的说法是一名刻碑人。这手艺本传男不传女，但多年前外公犯了这行的忌讳，家里的男丁都没留下来，他还生了场重病。自那以后，外公就再也不干这一行，天天在家养鸭养鸡。直到人请他出山刻一座镇墓碑，外公迫不得已，才选了我这个外孙女当传承人。学刻碑的第一天，我就遇见了怪事",
//         originalPrice:"49.00",
//         currentPrice:"26.90",
//         freight:"包邮",
//         bookRatings:"9.0",
//         classify:'2',
//         lng: '115.47205323272921',
//         lat: '38.80714557059355',
//     }
// ])



// 书单推荐
const bookDationsSchema = new mongoose.Schema({
    bookListPic:String, //书单封面
    bookListTitle:String, //书单名称
    booklistCollections:String, //收藏书单
    avatar:Array, //用户头像
    info:String, //推荐人数
    booknum :String //书数


})
const bookDationsModel = mongoose.model("bookDations",bookDationsSchema,'bookDations')
// bookDationsModel.create([
//     {
//         bookListPic:"https://ts1.cn.mm.bing.net/th/id/R-C.b7d1a36d819b488b648801914fd86576?rik=h%2bmzShN%2fok4t7A&riu=http%3a%2f%2fwww.fakutownee.cn%2fd%2ffile%2fp%2f2020-07-13%2fdbe6f1c21f509ccf7badc2591a9bf753.jpg&ehk=9D2bYVPaIXxaEZxQxD%2bY1pkCAGoVADhyjbwyMZrjsaU%3d&risl=&pid=ImgRaw&r=0",
//         bookListTitle:"那些有趣的历史",
//         booklistCollections:"263",
//         avatar:[
//             "https://tupian.qqw21.com/article/UploadPic/2019-10/2019102919524817922.jpg",
//             "https://p.qqan.com/up/2021-2/16130189085811567.jpg",
//             "https://tupian.qqw21.com/article/UploadPic/2019-10/2019101521585053977.jpg",
//         ],
//         info:"56",
//         booknum:"34"
//     },
//     {
//         bookListPic:"https://ts1.cn.mm.bing.net/th/id/R-C.04fae08c3a417e76a143983ff3e64bca?rik=D5hrra8%2f7OkluQ&riu=http%3a%2f%2fcdn1.52jingsai.com%2fportal%2f202001%2f06%2f153236hmtneyy6tmft4t6s.jpg&ehk=U0xndAkAylsFELt7SfNHBzq3IDL86sBv5cXmFl3dfto%3d&risl=&pid=ImgRaw&r=0",
//         bookListTitle:"我最爱的文学作品",
//         booklistCollections:"200",
//         avatar:[
//             "https://tupian.qqw21.com/article/UploadPic/2019-4/201942420442955864.jpg",
//             "https://p.qqan.com/up/2021-3/16149140812261197.jpg",
//             "https://tupian.qqw21.com/article/UploadPic/2020-1/2020151522921228.jpg"
//         ],
//         info:"26",
//         booknum:"45"
//     },
//     {
//         bookListPic:"https://ts1.cn.mm.bing.net/th/id/R-C.f511d2df18644ca6ce1a0bd35f70f19d?rik=QHlEOzg119c%2bsw&riu=http%3a%2f%2fd.ifengimg.com%2fq100%2fimg1.ugc.ifeng.com%2fnewugc%2f20190927%2f22%2fwemedia%2ffae3417798e6d03abb520f84b388a91a6f40384a_size679_w4500_h1915.jpg&ehk=ui%2b4ho3U4nYKowLGbb6wkF1x9ZhEMly3diCz992Asrg%3d&risl=&pid=ImgRaw&r=0",
//         bookListTitle:"爱你不是两三天",
//         booklistCollections:"50",
//         avatar:[
//             "https://pic2.zhimg.com/50/v2-be60ccb6459d948261aa0c00a39e19a2_hd.jpg?source=1940ef5c",
//             "https://p.qqan.com/up/2020-10/16037671312667554.jpg",
//             "https://p.qqan.com/up/2021-6/16227747227858046.jpg"
//         ],
//         info:"15",
//         booknum:"25"
//     },
//     {
//         bookListPic:"https://ts1.cn.mm.bing.net/th/id/R-C.bd3e2501c1275285aa20ed7f6ada814c?rik=aiL1L1z%2b1vI5Ag&riu=http%3a%2f%2fimg.aiimg.com%2fuploads%2fallimg%2f201214%2f263915-2012141F921.jpg&ehk=%2bxY%2bKQYfChGxPOUvJqvv57CGZVqelW289v4KaybknIk%3d&risl=&pid=ImgRaw&r=0",
//         bookListTitle:"奋斗的人生",
//         booklistCollections:"70",
//         avatar:[
//             "https://p.qqan.com/up/2021-7/16257943989727369.jpg",
//             "https://imgo.youxiniao.com/img2021/2/3/20/2021232045463286.jpg",
//             "https://p.qqan.com/up/2020-9/16010876395663664.jpg"
//         ],
//         info:"18",
//         booknum:"29"
//     }
// ])

module.exports={
    bookListModel,bookDationsModel
}